package com.ericsson.rm.service.impl;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ericsson.rm.dao.ProjectDtlFromCSVDao;
import com.ericsson.rm.service.FileUploadService;
import com.ericsson.rm.vo.ProjectDetailsVO;
@Service
public class FileUploadServiceImpl implements FileUploadService{
	
	
	private final static Logger logger = LoggerFactory.getLogger(FileUploadServiceImpl.class);
	private final static String CLASS_NAME = FileUploadServiceImpl.class.getSimpleName(); 
	
	
	@Autowired
    ProjectDtlFromCSVDao projectDtlFromCSVDao ;
	
	
	public ProjectDtlFromCSVDao getProjectDtlFromCSVDao() {
		return projectDtlFromCSVDao;
	}


	public void setProjectDtlFromCSVDao(ProjectDtlFromCSVDao projectDtlFromCSVDao) {
		this.projectDtlFromCSVDao = projectDtlFromCSVDao;
	}


	public void uploadCSVData(List<ProjectDetailsVO> projectDetailsVO_list){
		projectDtlFromCSVDao.saveProjectDtls(projectDetailsVO_list);
		
	}

}
